@use '@angular/material' as mat;

@mixin form-color($theme) {
  $config: mat.m2-get-color-config($theme);
  $foreground: map-get($config, foreground);
  $background: map-get($config, background);
  $primary: map-get($config, primary);
  $accent: map-get($config, accent);
  $warn: map-get($config, warn);

  $text-base: mat.m2-get-color-from-palette($foreground, text, 0.75);

  .checkbox {
    .badge {
      background-color: mat.m2-get-color-from-palette($primary, 0.1);
      color: mat.m2-get-color-from-palette($primary);
    }
  }

  .img-picker {
    .meta {
      background-color: mat.m2-get-color-from-palette($primary, 0.2);
    }
  }

  .contact-us-1v1 {
    &:after {
      background-color: mat.m2-get-color-from-palette($primary);
    }
    .box {
      @include mat.elevation(
        4,
        mat.m2-get-color-from-palette($foreground, text),
        0.5
      );
      background-color: mat.m2-get-color-from-palette($background, card);
    }
    .form {
      background-color: mat.m2-get-color-from-palette($background, card);
    }
    .content {
      color: mat.m2-get-color-from-palette($primary, default-contrast);
    }
  }

  formly-form {
    .slider {
      .value {
        background-color: mat.m2-get-color-from-palette($background, card);
        border: 1px solid mat.m2-get-color-from-palette($foreground, divider);
        &:hover {
          border-color: mat.m2-get-color-from-palette($primary);
        }
      }
    }
  }
}
